<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <Footer v-show="!$route.meta.isHidden"></Footer>
  </div>
</template>
<script>
import Header from "@/components/Header/Header.vue";
import Footer from "@/components/Footer/Footer.vue";
export default {
  name: "App",
  data() {
    return {};
  },
  mounted() {
    this.getcategoryList();
  },
  methods: {
    //获取三级菜单数据,App只渲染一次,因此不变的数据可以放在此处获取
    getcategoryList() {
      this.$store.dispatch("get_categoryList");
    },
  },
  components: {
    Header,
    Footer,
  },
};
</script>

<style lang="less" scoped>
</style>
